s=input()
for i in s[::-1]:
    print(i,end='')
